fix(miner): include laptop-state in doctor integrity and migrate store lists#8747
Closed
galuis116 wants to merge 1 commit into
Closed
fix(miner): include laptop-state in doctor integrity and migrate store lists#8747galuis116 wants to merge 1 commit into
galuis116 wants to merge 1 commit into
Conversation
…e lists Add laptop-state.sqlite3 to doctor's deep store-integrity sweep and migrate's STORES list, extract openLaptopStateStore for the migrate adapter, and correct DEPLOYMENT.md override/integrity claims. Closes JSONbored#8641
Contributor
|
LoopOver closed this because @galuis116 has 3 open pull requests, above this repository's configured limit of 2. Close or merge an existing one to open a new one. This is an automated maintenance action. |
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8747 +/- ##
==========================================
- Coverage 93.80% 90.67% -3.14%
==========================================
Files 797 99 -698
Lines 79491 22842 -56649
Branches 24085 4012 -20073
==========================================
- Hits 74565 20711 -53854
+ Misses 3555 1946 -1609
+ Partials 1371 185 -1186
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
laptop-stateto doctor'sstoreIntegrityChecksand migrate'sSTORESso the eighteenth durable store gets the same deepPRAGMA integrity_checkand proactive schema migration as the other seventeen.openLaptopStateStore(dbPath)for migrate's open adapter (initLaptopStatenow reuses it).DEPLOYMENT.md:LOOPOVER_MINER_LAPTOP_STATE_DBoverride is real, andstore-integrity:laptop-stateis part of the deep integrity sweep.Closes #8641
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlint— not applicable (no workflow changes)npm run typecheck— skipped locally (Windows Node path; changes are TypeScript-compatible with existing patterns)npx vitest run test/unit/miner-migrate-cli.test.ts test/unit/miner-status.test.ts -t "eighteen|#8641|laptop-state|corrupted store|healthy setup"(5 passed)npm run test:coveragelocally — full suite not run here; patch coverage aimed at 100% via healthy + corrupted integrity branches and migrate needs-migration pathnpm run test:workers— not applicablenpm run build:mcp— not applicablenpm run test:mcp-pack— not applicablenpm run ui:openapi:check— not applicable (no UI/OpenAPI)npm run ui:lint— not applicablenpm run ui:typecheck— not applicablenpm run ui:build— not applicablenpm audit --audit-level=moderate— not applicable (no dependency changes)If any required check was skipped, explain why:
test:coverageleft to CI; local focused vitest covers doctor integrity (healthy presence, healthy absence, corrupted) and migrate (pre-baseline → migrated → up-to-date) forlaptop-state.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
Not applicable — miner CLI / docs only; no visible UI changes.
Notes